<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!doctype html>
<html>
	<head>
		<title>公会仓库</title>
		<base href="<%=basePath%>" />
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="apple-mobile-web-app-title" content="Amaze UI" />
		<link rel="stylesheet" href="layui/css/layui.css" media="all"> <!-- 适应所有设备 -->
		<style type="text/css">
		</style>
	</head>
	<% String nowDay = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); %>
	<body>
	    <input type="hidden" id="guildInformation" name = "guildInformation">
	    <table class="layui-hide" id="GuildGoods" lay-filter="GuildGoods"></table>
	    
	    <script src="js/jquery.min.js"></script>
		<script src="layui/layui.js"></script>
		<script>
		    layui.use(['layer','form','table'],function(){
		    	var layer = layui.layer,
		    	    form  = layui.form,
		    	    table = layui.table;
		    	
		    	layer.config({
					extend: 'MySkin/style.css'
				});
		    	
		    	setTimeout(function(){
		    		table.render({
			    		elem:'#GuildGoods',
			    		url:'guild/WarehouseList',
			    		method:'post',
			    		title:'仓库物品',
			    		skin: 'row',
			    		page : false,//分页
			    		cellMinWidth:80,
			    		id:'AllTable',
			    		where:{
			    			guildId:$("#guildInformation").val()
			    		},
			    		cols:[[
			    			{field:'ItemWarhead1',title:'青铜'},
			    			{field:'ItemWarhead2',title:'白银'},
			    			{field:'ItemWarhead3',title:'黄金'},
			    			{field:'ItemWarhead4',title:'紫金'},
			    			{field:'ItemShadow',title:'分身'},
			    			{field:'ItemWild',title:'狂暴'},
			    			{field:'ItemMultipleHit',title:'倍击'},
			    			{field:'ItemLock',title:'锁定 '},
			    			{field:'ItemFreeze',title:'冰冻'},
			    			{field:'ItemSummon',title:'召唤'},
			    			{field:'Item10',title:'防水木料'},
			    			{field:'Item11',title:'精炼矿石'},
			    			{field:'Item12',title:'海妖外壳'},
			    			{field:'Item13',title:'潮汐精粹'},
			    			{field:'Item14',title:'深海魔精'}
			    			]],
							response : {
								statusCode : 200
							//重新规定成功的状态码为 200，table 组件默认为 0
							},
							parseData : function(res) { //将原始数据解析成 table 组件所规定的数据
								return {
									"code" : res.status, //解析接口状态
									"msg" : res.message, //解析提示文本
									"count" : res.count, //解析数据长度
									"data" : res.data
								//解析数据列表
								};
							}
			    	});
		    	},500);
		    		
		    });
		</script>
    </body>
</html>